package org.test.rocketmq;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties("apache.rocketmq")
public class RocketmqConfig {

    private String namesrvAddr;

    private RocketmqConsumerConfig consumer;

    private RocketmqProducerConfig producer;

    public String getNamesrvAddr() {
        return namesrvAddr;
    }

    public void setNamesrvAddr(String namesrvAddr) {
        this.namesrvAddr = namesrvAddr;
    }

    public RocketmqConsumerConfig getConsumer() {
        return consumer;
    }

    public void setConsumer(RocketmqConsumerConfig consumer) {
        this.consumer = consumer;
    }

    public RocketmqProducerConfig getProducer() {
        return producer;
    }

    public void setProducer(RocketmqProducerConfig producer) {
        this.producer = producer;
    }
}
